using System;
using System.Collections.Generic;
using System.Data;
using Orchard.ContentManagement.Drivers;
using Orchard.ContentManagement.MetaData;
using Orchard.ContentManagement.MetaData.Builders;
using Orchard.Core.Contents.Extensions;
using Orchard.Data.Migration;
using Orchard.Environment.Extensions;
using SchoolPointe.RelatedContent.Enums;
using SchoolPointe.RelatedContent.Extensions;


namespace SchoolPointe.Menus {

    [OrchardFeature("SchoolPointe.Menus.Classy")]
    public class ClassyMigrations : DataMigrationImpl {

        public int Create() {
            ContentDefinitionManager.AlterTypeDefinition("MenuItem", cfg => cfg.WithPart("CustomCss"));
            ContentDefinitionManager.AlterTypeDefinition("MenuWidget", cfg => cfg.WithPart("CustomCss"));
            return 1;
        }
    }
}